package com.easymin.weixin.controller.v5.utils;

import java.io.Serializable;

/**
 * 乘客请求返回信息封装对象
 * 
 * @author zane
 *
 */
public class ResultV5 implements Serializable, Cloneable {

	/**
	 * UID
	 */
	private static final long serialVersionUID = -118497630573642817L;

	/**
	 * 返回码
	 */
	private Integer code;

	/**
	 * 错误信息
	 */
	private String errorMsg;

	/**
	 * 返回的请求结果数据
	 */
	private Object data;


	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public ResultV5() {
		super();
	}

	public ResultV5(Integer code, String errorMsg) {
		super();
		this.code = code;
		this.errorMsg = errorMsg;
	}

    public ResultV5 clone() {
        return new ResultV5(0, "请求成功");
    }

    @Override
    public String toString() {
        return "ResultV5{" + "code=" + code + ", errorMsg='" + errorMsg + '\'' + ", data=" + data + '}';
    }


}
